Optimal. Leaf size=341 \[ -\frac {a \cosh (e+f x) \sinh ^3(e+f x)}{(a-b) b f \sqrt {a+b \sinh ^2(e+f x)}}+\frac {(4 a-b) \cosh (e+f x) \sinh (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 (a-b) b^2 f}+\frac {\left (8 a^2-3 a b-2 b^2\right ) E\left (\text {ArcTan}(\sinh (e+f x))\left |1-\frac {b}{a}\right .\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 (a-b) b^3 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {(4 a-b) F\left (\text {ArcTan}(\sinh (e+f x))\left |1-\frac {b}{a}\right .\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 (a-b) b^2 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {\left (8 a^2-3 a b-2 b^2\right ) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{3 (a-b) b^3 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.23, antiderivative size = 341, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.280, Rules used = {3267, 481, 596,
545, 429, 506, 422} \begin {gather*} \frac {\left (8 a^2-3 a b-2 b^2\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} E\left (\text {ArcTan}(\sinh (e+f x))\left |1-\frac {b}{a}\right .\right )}{3 b^3 f (a-b) \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {\left (8 a^2-3 a b-2 b^2\right ) \tanh (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 b^3 f (a-b)}-\frac {(4 a-b) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} F\left (\text {ArcTan}(\sinh (e+f x))\left |1-\frac {b}{a}\right .\right )}{3 b^2 f (a-b) \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}+\frac {(4 a-b) \sinh (e+f x) \cosh (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 b^2 f (a-b)}-\frac {a \sinh ^3(e+f x) \cosh (e+f x)}{b f (a-b) \sqrt {a+b \sinh ^2(e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 422
Rule 429
Rule 481
Rule 506
Rule 545
Rule 596
Rule 3267
Rubi steps
\begin {align*} \int \frac {\sinh ^6(e+f x)}{\left (a+b \sinh ^2(e+f x)\right )^{3/2}} \, dx &=\frac {\left (\sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {x^6}{\sqrt {1+x^2} \left (a+b x^2\right )^{3/2}} \, dx,x,\sinh (e+f x)\right )}{f}\\ &=-\frac {a \cosh (e+f x) \sinh ^3(e+f x)}{(a-b) b f \sqrt {a+b \sinh ^2(e+f x)}}+\frac {\left (\sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {x^2 \left (3 a+(4 a-b) x^2\right )}{\sqrt {1+x^2} \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{(a-b) b f}\\ &=-\frac {a \cosh (e+f x) \sinh ^3(e+f x)}{(a-b) b f \sqrt {a+b \sinh ^2(e+f x)}}+\frac {(4 a-b) \cosh (e+f x) \sinh (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 (a-b) b^2 f}-\frac {\left (\sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {a (4 a-b)+\left (8 a^2-3 a b-2 b^2\right ) x^2}{\sqrt {1+x^2} \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{3 (a-b) b^2 f}\\ &=-\frac {a \cosh (e+f x) \sinh ^3(e+f x)}{(a-b) b f \sqrt {a+b \sinh ^2(e+f x)}}+\frac {(4 a-b) \cosh (e+f x) \sinh (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 (a-b) b^2 f}-\frac {\left (a (4 a-b) \sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1+x^2} \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{3 (a-b) b^2 f}-\frac {\left (\left (8 a^2-3 a b-2 b^2\right ) \sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {x^2}{\sqrt {1+x^2} \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{3 (a-b) b^2 f}\\ &=-\frac {a \cosh (e+f x) \sinh ^3(e+f x)}{(a-b) b f \sqrt {a+b \sinh ^2(e+f x)}}+\frac {(4 a-b) \cosh (e+f x) \sinh (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 (a-b) b^2 f}-\frac {(4 a-b) F\left (\tan ^{-1}(\sinh (e+f x))|1-\frac {b}{a}\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 (a-b) b^2 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {\left (8 a^2-3 a b-2 b^2\right ) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{3 (a-b) b^3 f}+\frac {\left (\left (8 a^2-3 a b-2 b^2\right ) \sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {\sqrt {a+b x^2}}{\left (1+x^2\right )^{3/2}} \, dx,x,\sinh (e+f x)\right )}{3 (a-b) b^3 f}\\ &=-\frac {a \cosh (e+f x) \sinh ^3(e+f x)}{(a-b) b f \sqrt {a+b \sinh ^2(e+f x)}}+\frac {(4 a-b) \cosh (e+f x) \sinh (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 (a-b) b^2 f}+\frac {\left (8 a^2-3 a b-2 b^2\right ) E\left (\tan ^{-1}(\sinh (e+f x))|1-\frac {b}{a}\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 (a-b) b^3 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {(4 a-b) F\left (\tan ^{-1}(\sinh (e+f x))|1-\frac {b}{a}\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 (a-b) b^2 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {\left (8 a^2-3 a b-2 b^2\right ) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{3 (a-b) b^3 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.84, size = 211, normalized size = 0.62 \begin {gather*} \frac {2 i \sqrt {2} a \left (8 a^2-3 a b-2 b^2\right ) \sqrt {\frac {2 a-b+b \cosh (2 (e+f x))}{a}} E\left (i (e+f x)\left |\frac {b}{a}\right .\right )-2 i \sqrt {2} a \left (8 a^2-7 a b-b^2\right ) \sqrt {\frac {2 a-b+b \cosh (2 (e+f x))}{a}} F\left (i (e+f x)\left |\frac {b}{a}\right .\right )-b \left (-8 a^2+3 a b-b^2+b (-a+b) \cosh (2 (e+f x))\right ) \sinh (2 (e+f x))}{6 (a-b) b^3 f \sqrt {4 a-2 b+2 b \cosh (2 (e+f x))}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.27, size = 500, normalized size = 1.47
method | result | size |
default | \(\frac {\sqrt {-\frac {b}{a}}\, a b \left (\sinh ^{5}\left (f x +e \right )\right )-\sqrt {-\frac {b}{a}}\, b^{2} \left (\sinh ^{5}\left (f x +e \right )\right )+4 \sqrt {-\frac {b}{a}}\, a^{2} \left (\sinh ^{3}\left (f x +e \right )\right )-\sqrt {-\frac {b}{a}}\, b^{2} \left (\sinh ^{3}\left (f x +e \right )\right )+4 a^{2} \sqrt {\frac {a +b \left (\sinh ^{2}\left (f x +e \right )\right )}{a}}\, \sqrt {\frac {\cosh \left (2 f x +2 e \right )}{2}+\frac {1}{2}}\, \EllipticF \left (\sinh \left (f x +e \right ) \sqrt {-\frac {b}{a}}, \sqrt {\frac {a}{b}}\right )-2 \sqrt {\frac {a +b \left (\sinh ^{2}\left (f x +e \right )\right )}{a}}\, \sqrt {\frac {\cosh \left (2 f x +2 e \right )}{2}+\frac {1}{2}}\, \EllipticF \left (\sinh \left (f x +e \right ) \sqrt {-\frac {b}{a}}, \sqrt {\frac {a}{b}}\right ) a b -2 \sqrt {\frac {a +b \left (\sinh ^{2}\left (f x +e \right )\right )}{a}}\, \sqrt {\frac {\cosh \left (2 f x +2 e \right )}{2}+\frac {1}{2}}\, \EllipticF \left (\sinh \left (f x +e \right ) \sqrt {-\frac {b}{a}}, \sqrt {\frac {a}{b}}\right ) b^{2}-8 \sqrt {\frac {a +b \left (\sinh ^{2}\left (f x +e \right )\right )}{a}}\, \sqrt {\frac {\cosh \left (2 f x +2 e \right )}{2}+\frac {1}{2}}\, \EllipticE \left (\sinh \left (f x +e \right ) \sqrt {-\frac {b}{a}}, \sqrt {\frac {a}{b}}\right ) a^{2}+3 \sqrt {\frac {a +b \left (\sinh ^{2}\left (f x +e \right )\right )}{a}}\, \sqrt {\frac {\cosh \left (2 f x +2 e \right )}{2}+\frac {1}{2}}\, \EllipticE \left (\sinh \left (f x +e \right ) \sqrt {-\frac {b}{a}}, \sqrt {\frac {a}{b}}\right ) a b +2 \sqrt {\frac {a +b \left (\sinh ^{2}\left (f x +e \right )\right )}{a}}\, \sqrt {\frac {\cosh \left (2 f x +2 e \right )}{2}+\frac {1}{2}}\, \EllipticE \left (\sinh \left (f x +e \right ) \sqrt {-\frac {b}{a}}, \sqrt {\frac {a}{b}}\right ) b^{2}+4 \sqrt {-\frac {b}{a}}\, a^{2} \sinh \left (f x +e \right )-\sqrt {-\frac {b}{a}}\, a b \sinh \left (f x +e \right )}{3 b^{2} \left (a -b \right ) \sqrt {-\frac {b}{a}}\, \cosh \left (f x +e \right ) \sqrt {a +b \left (\sinh ^{2}\left (f x +e \right )\right )}\, f}\) | \(500\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.11, size = 55, normalized size = 0.16 \begin {gather*} {\rm integral}\left (\frac {\sqrt {b \sinh \left (f x + e\right )^{2} + a} \sinh \left (f x + e\right )^{6}}{b^{2} \sinh \left (f x + e\right )^{4} + 2 \, a b \sinh \left (f x + e\right )^{2} + a^{2}}, x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 1143 vs.
\(2 (347) = 694\).
time = 2.87, size = 1143, normalized size = 3.35 \begin {gather*} \frac {{\left ({\left (\frac {{\left (a^{4} b^{6} e^{\left (17 \, e\right )} - 2 \, a^{3} b^{7} e^{\left (17 \, e\right )} + a^{2} b^{8} e^{\left (17 \, e\right )}\right )} e^{\left (2 \, f x\right )}}{a^{4} b^{7} e^{\left (12 \, e\right )} - 2 \, a^{3} b^{8} e^{\left (12 \, e\right )} + a^{2} b^{9} e^{\left (12 \, e\right )}} + \frac {2 \, {\left (14 \, a^{5} b^{5} e^{\left (15 \, e\right )} - 17 \, a^{4} b^{6} e^{\left (15 \, e\right )} + 4 \, a^{3} b^{7} e^{\left (15 \, e\right )} - a^{2} b^{8} e^{\left (15 \, e\right )}\right )}}{a^{4} b^{7} e^{\left (12 \, e\right )} - 2 \, a^{3} b^{8} e^{\left (12 \, e\right )} + a^{2} b^{9} e^{\left (12 \, e\right )}}\right )} e^{\left (2 \, f x\right )} + \frac {48 \, a^{6} b^{4} e^{\left (13 \, e\right )} - 72 \, a^{5} b^{5} e^{\left (13 \, e\right )} + 25 \, a^{4} b^{6} e^{\left (13 \, e\right )} - 2 \, a^{3} b^{7} e^{\left (13 \, e\right )} + a^{2} b^{8} e^{\left (13 \, e\right )}}{a^{4} b^{7} e^{\left (12 \, e\right )} - 2 \, a^{3} b^{8} e^{\left (12 \, e\right )} + a^{2} b^{9} e^{\left (12 \, e\right )}}\right )} e^{\left (f x\right )}}{24 \, \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b} f} + \frac {\frac {2 \, {\left (11 \, a^{2} \sqrt {b} e^{e} - 3 \, a b^{\frac {3}{2}} e^{e} - 2 \, b^{\frac {5}{2}} e^{e}\right )} \log \left ({\left | -{\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )} b - 2 \, a \sqrt {b} + b^{\frac {3}{2}} \right |}\right )}{a b^{3} - b^{4}} + \frac {2 \, {\left (21 \, a^{3} e^{e} - 24 \, a^{2} b e^{e} - 5 \, a b^{2} e^{e} - 4 \, b^{3} e^{e}\right )} \arctan \left (-\frac {\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}}{\sqrt {-b}}\right )}{{\left (a b^{3} - b^{4}\right )} \sqrt {-b}} - \frac {3 \, {\left (14 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{3} a^{2} e^{e} - 2 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{3} a b e^{e} - 3 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{3} b^{2} e^{e} + 4 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{2} a b^{\frac {3}{2}} e^{e} + 4 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{2} b^{\frac {5}{2}} e^{e} - 18 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )} a^{2} b e^{e} + 6 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )} a b^{2} e^{e} + {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )} b^{3} e^{e} - 8 \, a b^{\frac {5}{2}} e^{e} - 2 \, b^{\frac {7}{2}} e^{e}\right )}}{{\left ({\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{2} - b\right )}^{2} b^{3}}}{24 \, f^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\mathrm {sinh}\left (e+f\,x\right )}^6}{{\left (b\,{\mathrm {sinh}\left (e+f\,x\right )}^2+a\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________